/* 项目管理样式 */

/* 顶部导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

/* 导航标签页样式 */
.nav-tabs .nav-link {
    font-weight: 500;
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    border-color: #e9ecef;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background-color: transparent;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.badge-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px; 
    height: calc(100vh - 56px); 
    position: fixed; 
    top: 56px; 
    left: 0; 
    z-index: 1000; 
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    margin-top: 0;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-nav .nav-link {
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link .fa {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    display: inline-block;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff !important;
}

.sidebar-nav .nav-link.active {
    background-color: #007bff;
    color: #ffffff !important;
}



/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
}

/* 消息中心样式 */
.message-center {
    max-height: 300px;
    overflow-y: auto;
}

.message-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background-color: #f8f9fa;
}

.message-item:hover {
    background-color: #e9ecef;
}

/* 项目卡片样式 */
.project-card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-progress {
    height: 10px;
    border-radius: 5px;
}

.project-status-badge {
    font-size: 0.8rem;
    padding: 0.25em 0.5em;
}

/* 任务表格样式 */
.task-table th {
    border-top: none;
}

.task-table td {
    vertical-align: middle;
}

/* 优先级样式 */
.priority-high {
    background-color: #dc3545;
    color: white;
}

.priority-medium {
    background-color: #ffc107;
    color: black;
}

.priority-low {
    background-color: #28a745;
    color: white;
}

/* 统计卡片样式 */
.stats-card {
    border-left: 4px solid #007bff;
}

.stats-card.bg-success {
    border-left-color: #28a745;
}

.stats-card.bg-info {
    border-left-color: #17a2b8;
}

.stats-card.bg-warning {
    border-left-color: #ffc107;
}

.stats-card.bg-danger {
    border-left-color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
}